package com.sxt.bus.controller;



import com.sxt.springcloud.bus.InportClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import com.sxt.bus.vo.InportVo;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 老雷
 * @since 2019-09-28
 */
@RestController
@RequestMapping("inport")
public class InportController {
	@Autowired
	private InportClientService inportClientService;

	/**
	 * 查询
	 */
	@RequestMapping("loadAllInport")
	public DataGridView loadAllInport(InportVo inportVo) {

		return this.inportClientService.loadAllInport(inportVo);
	}
	/**
	 * 添加
	 */
	@RequestMapping("addInport")
	public ResultObj addInport(InportVo inportVo) {
		return this.inportClientService.addInport(inportVo);
	}
	/**
	 * 修改
	 */
	@RequestMapping("updateInport")
	public ResultObj updateInport(InportVo inportVo) {
		return this.inportClientService.updateInport(inportVo);
	}
	/**
	 * 删除
	 */
	@RequestMapping("deleteInport")
	public ResultObj deleteInport(Integer id){
		return this.inportClientService.deleteInport(id);
	}

}

